# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-font-viewer
pkgver=42.0
pkgrel=0
pkgdesc="View fonts on your system"
url="https://gitlab.gnome.org/GNOME/gnome-font-viewer"
# s390x and riscv64 blocked by rust -> libadwaita-dev
arch="all !s390x !riscv64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
makedepends="
	fontconfig-dev
	freetype-dev
	glib-dev
	gnome-desktop-dev
	gtk4.0-dev
	harfbuzz-dev
	libadwaita-dev
	meson
	"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-font-viewer/${pkgver%.*}/gnome-font-viewer-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
231aaf594b22741f8a138c0a6c764244eb947f9cf30385353f4dea13cfc7929f21a291f9a56810eb24862310ecab6b4555147ef6be9e7a5d3057ae05ebba76ec  gnome-font-viewer-42.0.tar.xz
"
